﻿/// <reference path="../../Content/js/angular.js" />
app.service('ApplicationService', ['$http', function ($http) {

    this.Save = function (data, url, modelname) {
        return $http.post(url, data);
    };

    this.Getdatas = function (url) {
        return $http.get(url).success(function (responce) {});
    };

    this.Getdata = function (url, id, file) {
        return $http.get(url, { params: { dataId: id } });
    };

    this.DeleteData = function (url, id, data) {
        return $http.get(url, { params: { DataId: id } });
    }

}]);